#ifndef __TASK_DATA_HPP__
#define __TASK_DATA_HPP__
#include "thread_task.hpp"

#include <string>
// 用于处理任务数据的对象
class task_data : public thread_task
{
private:
    /* data */
protected:
    struct bufferevent *m_data_buffer;
public:
    task_data(/* args */);
    ~task_data();

    void set_event_callback(struct bufferevent* buffer,void* arg);
    void recv_msg(std::string msg);
    bool check_ip(const char* ip);
public:
    task_data* m_cmd_task;
    virtual void parse_cmd(std::string type,std::string msg){}
    virtual void init(){return;}
};
#endif